package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(待办事项实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EventInfo extends Model<EventInfo> {

	private static final long serialVersionUID = 162553799L;

	@TableId(value = "eve_id", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "eveId" , value = "事件id")
	private String eveId;

	@NotBlank(message = "事件名称不为空")
	@ApiModelProperty(name = "eveName" , value = "事件名称")
	private String eveName;

	@ApiModelProperty(name = "eveRemTime" , value = "提醒时间")
	private String eveRemTime;

	@ApiModelProperty(name = "eveLevel" , value = "紧急程度")
	private String eveLevel;
    
	@ApiModelProperty(name = "eveStatus" , value = "状态")
	private String eveStatus;
    
	@ApiModelProperty(name = "eveDesc" , value = "详细描述")
	private String eveDesc;

	@ApiModelProperty(name = "eveSourceId" , value = "商机id")
	private String eveSourceId;

	@ApiModelProperty(name = "eveCliId" , value = "客户id")
	private String eveCliId;

	@ApiModelProperty(name = "eveIplanId" , value = "回款计划id")
	private String eveIplanId;

	@ApiModelProperty(name = "eveAplanId" , value = "活动计划id")
	private String eveAplanId;

	@ApiModelProperty(name = "eveContractId" , value = "合同id")
	private String eveContractId;

	@ApiModelProperty(name = "eveIncomeId" , value = "回款id")
	private String eveIncomeId;

	@ApiModelProperty(name = "eveInvoiceId" , value = "发票id")
	private String eveInvoiceId;

	@ApiModelProperty(name = "eveEmpId" , value = "员工id")
	private String eveEmpId;

	@ApiModelProperty(name = "eventTime" , value = "当前时间")
	private String eventTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
	private Integer isDelete;


}
